nodejs22.x/full-stack/{{cookiecutter.project_name}}/frontend/vite.config.js (11 lines of code) (raw):
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig ({
plugins: [
vue(),
],
// ...
test: {
// enable jest-like global test APIs
globals: true,
// simulate DOM with happy-dom
environment: 'happy-dom'
}
})